from tortoise import fields
from tortoise.models import Model


class User(Model):
    username = fields.CharField(max_length=20, unique=True, null=False, description="用户名")
    password = fields.CharField(max_length=150, null=False, description="密码")
    role = fields.CharField(max_length=5, default="普通用户", description="角色")
    status = fields.CharField(max_length=5, default="正常", description="状态")
